

var dblLoginScene = {
    runThisScene:function(){

        this.ui = new cc.Scene() 
        
        cc.BuilderReader.registerController("dblLogin", {});
        this._initCallBack();

        var node  = cc.BuilderReader.load("ccb/dblLogin.ccbi", this);
        this.animationManager = node.animationManager
        this.ui.addChild(node);

        createNameEditBox(this.inputBox,'输入你的昵称')

        // var listener = cc.EventListener.create({
        //     event: cc.EventListener.CUSTOM,
        //     eventName: "loginSuccess",
        //     callback: function(event){
        //         userData = event.getUserData()
        //         var pScene = new runThisScene();
        //         if (pScene) {
        //             pScene.runThisTest();
        //         }
        //     }
        // });
        // cc.eventManager.addListener(listener, 1)

        cc.director.runScene(this.ui)
    },
    _initCallBack:function()
    {
        this.loginCall1 = function()
        {   
            cc.log('loginCall1')
            ioSocket.req('login', {name:this.inputBox.data})
        }
    },

}

